import { history, useLocation } from 'ice';
import { Button, Result } from 'antd';
import React, { useEffect } from 'react';
export default () => {
  const localtion = useLocation()
  useEffect(() => {
    if (localtion) {
      console.log('localtion:', localtion);
    }
  }, [localtion])

  return (
    < Result
      status="404"
      title="404"
      subTitle="你访问的页面不存在"
      extra={
        < Button type="primary" onClick={() => history?.push('/dashboard')}>
          返回
        </Button >
      }
    />
  )
};

